import { Component, OnInit } from '@angular/core';

@Component({
    selector: 'app-struct-derective',
    templateUrl: './struct-derective.component.html',
    styleUrls: ['./struct-derective.component.less']
})
export class StructDerectiveComponent implements OnInit {
    flag = true;
    num = 1;
    arr = [1, 2];
    user = {
        name: "111"
    };
    JSON = JSON;

    name = "tom";

    names = ["tom", "jack", "roge", "aa", "bb"];

    obj = {
        a: 1,
        b: 2,
        c: 1
    }

    constructor() { }

    ngOnInit() {
    }

    getKeys(arg){
        return Object.keys(arg);
    }

}
